package day10.packet;

import day10.command.Command;
import lombok.Data;

/**
 * @author chenshijie
 * @date 2023/12/23 15:54
 */
@Data
public class LoginResponsePacket extends Packet {

    private final int SUCCESS = 200;
    @Override
    public Byte getCommand() {
        return Command.LOGIN_RESPONSE;
    }

    private int status;

    private int userId;

    private String username;

    private String msg;

    public Boolean isSuccess() {
        return status == SUCCESS;
    }
}
